<template>
	<view class="container">
		<view class="info-box" @click="nextStep(0)">
			<image src="/static/img01.png" mode="scaleToFill"></image>
			采购商
		</view>
		<view class="info-box" @click="nextStep(1)">
			<image src="/static/img02.png" mode="scaleToFill"></image>
			供应商
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: ''
			}
		},
		onLoad() {},
		methods: {
			//提交
			nextStep(e) {
				uni.navigateTo({
					url: `./step02?type=${e}`
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		padding-top: 60upx;
	}

	.info-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 710upx;
		height: 350upx;
		margin: 0 auto 30upx;
		font-size: $base-font-base;
		line-height: 40upx;
		border-radius: 20upx;
		background-color: #fff;
		box-shadow: 0 0 24upx 4upx rgba(0, 0, 0, 0.13);

		image {
			margin-bottom: 30upx;
			width: 170upx;
			height: 170upx;
		}
	}

	/* #ifdef H5 */
	@media screen and (min-width: 750px) {
		page {
			padding-top: 0;
		}

		.container {
			padding: 50px;
			height: 100vh;
			display: flex;
			justify-content: center;
			align-items: center;
			background-color: #70a7f2;
		}

		.info-box {
			width: 350px;
			height: 350px;
			margin: 0 50px;
			font-size: 30px;
			line-height: 40px;
			border-radius: 20px;
			cursor: pointer;
			box-shadow: 0 0 24px 4px rgba(0, 0, 0, 0.13);

			image {
				margin-bottom: 30px;
				width: 170px;
				height: 170px;
			}
		}
	}

	/* #endif */
</style>
